package lab01;

/**
 * Created by admin on 2017/10/12.
 */
public class Test13 {
    public static void main(String[] args) {
        int x,y,z,i,sum;
        for (i=100;i<1000;i++) {
            z = i % 100 % 10;
            y = i / 10;
            y = y % 10;
            x = i / 100;
            sum = x * x * x + y * y * y + z * z * z;
            if (sum == i)
                System.out.println(sum + "是水仙花数");

        }

    }
}
